package com.example.demo.jpa.service;

import com.example.demo.model.Material;
import com.example.demo.model.vo.MaterialAddVo;
import com.example.demo.model.vo.MaterialSelectVo;
import com.example.demo.model.vo.MaterialUpdateVo;
import com.example.demo.model.vo.MaterialVo;
import com.example.demo.util.AllRecords;
import com.example.demo.util.Result;

import java.util.List;

/**
 * Created by 86151 on 2018/12/25.
 */
public interface JpaService {
    Result<AllRecords> queryPage(MaterialSelectVo materialSelectVo);
    Result<MaterialAddVo> addMaterialJpa(MaterialAddVo materialAddVo);
    Result<MaterialVo> queryById(Integer id);
    Result<MaterialUpdateVo> updateMaterial(MaterialUpdateVo materialUpdateVo);
}
